package com.aaa.service.sas.impl;

import com.aaa.dao.sas.TSasRecordDedtailMapper;
import com.aaa.entity.sas.TSasRecordDedtail;
import com.aaa.service.sas.TSasRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TSasRecordDedtailServiceImpl implements TSasRecordDedtailService {
    @Autowired
    private TSasRecordDedtailMapper tSasRecordDedtailMapper;
    @Override
    public boolean insertBatch(List<TSasRecordDedtail> details) {
        int i=0;
        for (TSasRecordDedtail dedtail: details){
            i+=tSasRecordDedtailMapper.insert(dedtail);
        }

        return details.size()==i;
    }
}
